<td width="727"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td valign="top">
									<table width="727" border="0" cellspacing="0" cellpadding="0">
	                                      <tr> 
	                                        <td width="727" height="47" valign="top" background="img/bar_blue.jpg"><table width="727" border="0" cellspacing="0" cellpadding="0">
	                                            <tr> 
	                                              <td width="10" height="47">&nbsp;</td>
	                                              <td width="23" height="47"><img src="img/bar_flblue.jpg" width="23" height="23"></td>
	                                              <td width="10" height="47">&nbsp;</td>
	                                              <td height="47" class="tahoma12W"><strong> 
	                                                <?php echo $lang['CONTENT_TITLE_PRODUCT']; ?></strong></td>
	                                            </tr>
	                                          </table></td>
	                                      </tr>
	                                      <tr> 
	                                        <td width="727" height="6" valign="top"><img src="img/spec_blank.gif" width="10" height="7"></td>
	                                      </tr>
	                                      <tr> 
											<td width="727" height="339" valign="top">
											 <?php include ('pagination_product_list.php'); ?>
											<?php
											            
												//$Qitem = "SELECT * from item order by name limit 0,5";
												//$Citem= $db->sql_total($Qitem);
												//$Ritem = $db->sql_fetch($Qitem);
												if($total_pages <> 0){
													?>
													<table width="727" border="0" cellspacing="0" cellpadding="0">
													
													<?php
													foreach($Ritem as $i){
														?>
														<tr> 
				                                              <td>   
																	<div id="productsboxpp"> 
																		<table width="100%" border="0" cellspacing="0" cellpadding="0">
						                                                    <tr> 
						                                                      <td width="10" height="10"></td>
						                                                      <td height="10"></td>
						                                                      <td width="10" height="10"></td>
						                                                    </tr>
						                                                    <tr> 
						                                                      <td width="10">&nbsp;</td>
						                                                      <td align="left" valign="top">
																					<table width="100%" border="0" cellspacing="0" cellpadding="0">
																						<tr> 
																							<td width="174"> 
																								<div id="productsimg"> 
																									<img src="<?php echo IMAGEITEM.$i['image'] ?>" name="productimg" width="174" height="136" id="productimg" >
																								</div>
																							</td>
																							<td width="10">&nbsp;</td>
																							<td valign="top">
																								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									                                                                <tr> 
																										<td class="arial11P"><strong><?php echo $i['name'] ?></strong></td>
									                                                                </tr>
									                                                                <tr> 
																										<td height="6" valign="top"><img src="img/spec_blank.gif" width="10" height="6"></td>
									                                                                </tr>
									                                                                <tr> 
																										<td class="arial10G660">KOD 
																											<?php echo $i['kod'] ?></td>
									                                                                </tr>
									                                                                <tr> 
																										<td height="6" valign="top"><img src="img/spec_blank.gif" width="10" height="6"></td>
									                                                                </tr>
									                                                                <tr> 
																										<td class="arial11G"><?php echo word_split($i['description'],25); ?>
																										</td>
																									</tr>
																									<tr> 
																										<td height="10" valign="top"><img src="img/spec_blank.gif" width="10" height="10"></td>
																									</tr>
																									<tr> 
																										<td class="arial13CK">RP(WM) 
										                                                                    <strong>RM <?php if($_SESSION['isAhli'] == 'yes' ){ echo sprintf("%01.2f",$i['price_wm_ahli']); }else{ echo sprintf("%01.2f",$i['price_wm']); } ?></strong><br>
										                                                                    RP(EM) <strong>RM <?php if($_SESSION['isAhli'] == 'yes' ){ echo sprintf("%01.2f",$i['price_em_ahli']); }else{ echo sprintf("%01.2f",$i['price_em']); }?></strong>
																										</td>
																									</tr>
									                                                                <tr> 
									                                                                  <td height="10" valign="top"><img src="img/spec_blank.gif" width="10" height="10"></td>
									                                                                </tr>
																									<tr> 
																										<td>
																											<table width="100%" border="0" cellspacing="0" cellpadding="0">
																												<tr> 
																													<td width="65"><a href="product.php?action=add&id=<?php echo $i['id'] ?>"><img src="img/btn_cart.jpg" width="64" height="20" border="0"></a></td>
																													<td width="6">&nbsp;</td>
																													<td><a href="product_detail.php?id=<?php echo $i['id'] ?>"><img src="img/btn_view.jpg" width="62" height="20" border="0"></a></td>
																												</tr>
																											</table>
																										</td>
																									</tr>
																								</table>
																							</td>
																						</tr>
							                                                        </table>
																				</td>
																				<td width="10">&nbsp;</td>
						                                                    </tr>		
						                                                    <tr> 
						                                                      <td width="10" height="10"></td>
						                                                      <td height="10"></td>
						                                                      <td width="10" height="10"></td>
						                                                    </tr>
					                                                    </table>
																	</div>
																</td>
				                                            </tr>
				                                            <tr> 
				                                              <td height="7" valign="top"><img src="img/spec_blank.gif" width="10" height="7"></td>
				                                            </tr>	
														<?php
													}
													?>
												</table>	
												<?php
												
												}
											?>
											</td>
										</tr>
                                    </table></td>
                                </tr>
                                <tr> 
									<td valign="top"> 
										<div id="paging-nav"> 
											<?php echo $pagination; ?> 
										</div>
									</td>
                                </tr>
                              </table>